home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
2_11.lha
/
2_11
/
2_11btst.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
608b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include "2_11b.c"
ain()
int a = 1, b = 2;
cout << "a = " << a << ", b = " << b << "\n";
swapints(a, b);
cout << "a = " << a << ", b = " << b << "\n";
a = 1, b = 1;
cout << "a = " << a << ", b = " << b << "\n";
swapints(a, b);
cout << "a = " << a << ", b = " << b << "\n";
a = 0, b = 1;
cout << "a = " << a << ", b = " << b << "\n";
swapints(a, b);
cout << "a = " << a << ", b = " << b << "\n";
return 0;